﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BuildMonitor.Properties;

namespace BuildMonitor.Engine
{
	public static class PublisherMethod
	{
		public static IBuildPublisher GetPublisher(ConsoleText consoleText)
		{
			if (Settings.Default.PublisherMethod.Equals("twitter", StringComparison.CurrentCultureIgnoreCase))
				return new TwitterBuildPublisherHelper(consoleText);
			if (Settings.Default.PublisherMethod.Equals("delcom", StringComparison.CurrentCultureIgnoreCase))
				return new DelcomBuildPublisher(consoleText);
			return null;
		}
	}
}